package com.learning.algorithm.controller;


import com.learning.algorithm.model.SimilarInputParam;
import com.learning.algorithm.model.SimilarResult;
import com.learning.algorithm.service.SimilarService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class SimilarController {
    @Resource
    private SimilarService similarService;

    @RequestMapping("/Similar")
    @ResponseBody
    SimilarResult test(@RequestBody SimilarInputParam params){
        return SimilarService.get(params);
    }

}
